﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:Interactivity="using:Microsoft.Xaml.Interactivity"
					xmlns:Core="using:Microsoft.Xaml.Interactions.Core"
					xmlns:local="using:CalendarWindowsApp.Styles">
	<!--BASE STYLES-->
	<Style TargetType="GridView">
		<Setter Property="Padding"
				Value="0" />
		<Setter Property="IsTabStop"
				Value="False" />
		<Setter Property="TabNavigation"
				Value="Once" />
		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
				Value="Auto" />
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility"
				Value="Auto" />
		<Setter Property="ScrollViewer.HorizontalScrollMode"
				Value="Enabled" />
		<Setter Property="ScrollViewer.IsHorizontalRailEnabled"
				Value="False" />
		<Setter Property="ScrollViewer.VerticalScrollMode"
				Value="Auto" />
		<Setter Property="ScrollViewer.IsVerticalRailEnabled"
				Value="False" />
		<Setter Property="ScrollViewer.ZoomMode"
				Value="Disabled" />
		<Setter Property="ScrollViewer.IsDeferredScrollingEnabled"
				Value="False" />
		<Setter Property="ScrollViewer.BringIntoViewOnFocusChange"
				Value="True" />
		<Setter Property="IsSwipeEnabled"
				Value="True" />
		<Setter Property="ItemContainerTransitions">
			<Setter.Value>
				<TransitionCollection>
					<AddDeleteThemeTransition />
					<ContentThemeTransition />
					<ReorderThemeTransition />
					<EntranceThemeTransition IsStaggeringEnabled="False" />
				</TransitionCollection>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="GridView">
					<Border BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							Background="{TemplateBinding Background}">
						<ScrollViewer x:Name="ScrollViewer"
									  TabNavigation="{TemplateBinding TabNavigation}"
									  HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
									  HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
									  IsHorizontalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsHorizontalScrollChainingEnabled}"
									  VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
									  VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
									  IsVerticalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsVerticalScrollChainingEnabled}"
									  IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
									  IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
									  ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}"
									  IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
									  BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}"
									  AutomationProperties.AccessibilityView="Raw">
							<ItemsPresenter FooterTransitions="{TemplateBinding FooterTransitions}"
											FooterTemplate="{TemplateBinding FooterTemplate}"
											Footer="{TemplateBinding Footer}"
											HeaderTemplate="{TemplateBinding HeaderTemplate}"
											Header="{TemplateBinding Header}"
											HeaderTransitions="{TemplateBinding HeaderTransitions}"
											Padding="{TemplateBinding Padding}" />
						</ScrollViewer>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background"
				Value="{x:Null}" />
	</Style>
	<Style TargetType="GridViewHeaderItem">
		<Setter Property="FontFamily"
				Value="{ThemeResource ContentControlThemeFontFamily}" />
		<Setter Property="FontSize"
				Value="{ThemeResource ControlContentThemeFontSize}" />
		<Setter Property="Background"
				Value="{x:Null}" />
		<Setter Property="BorderBrush"
				Value="White" />
		<Setter Property="BorderThickness"
				Value="1,0,0,0" />
		<Setter Property="Padding"
				Value="10" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="GridViewHeaderItem">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused">
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="FocusVisualWhite"
														 Storyboard.TargetProperty="Opacity"
														 To="1"
														 Duration="0" />
										<DoubleAnimation Storyboard.TargetName="FocusVisualBlack"
														 Storyboard.TargetProperty="Opacity"
														 To="1"
														 Duration="0" />
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused" />
								<VisualState x:Name="PointerFocused" />
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<ContentPresenter Content="{TemplateBinding Content}"
											  ContentTemplate="{TemplateBinding ContentTemplate}"
											  Margin="{TemplateBinding Padding}"
											  ContentTransitions="{TemplateBinding ContentTransitions}"
											  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
											  VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
						</Border>
						<Rectangle x:Name="FocusVisualWhite"
								   IsHitTestVisible="False"
								   Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}"
								   StrokeEndLineCap="Square"
								   StrokeDashArray="1,1"
								   Opacity="0"
								   StrokeDashOffset="1.5" />
						<Rectangle x:Name="FocusVisualBlack"
								   IsHitTestVisible="False"
								   Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}"
								   StrokeEndLineCap="Square"
								   StrokeDashArray="1,1"
								   Opacity="0"
								   StrokeDashOffset="0.5" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="GridViewItem">
		<Setter Property="FontFamily"
				Value="{ThemeResource ContentControlThemeFontFamily}" />
		<Setter Property="FontSize"
				Value="{ThemeResource ControlContentThemeFontSize}" />
		<Setter Property="Background"
				Value="Transparent" />
		<Setter Property="TabNavigation"
				Value="Local" />
		<Setter Property="IsHoldingEnabled"
				Value="True" />
		<Setter Property="Margin"
				Value="0" />
		<Setter Property="HorizontalContentAlignment"
				Value="Left" />
		<Setter Property="VerticalContentAlignment"
				Value="Top" />
		<!--<Setter Property="Padding"
				Value="10" />-->
		<Setter Property="BorderThickness"
				Value="1,1,0,0" />
		<Setter Property="BorderBrush"
				Value="White" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="GridViewItem">
					<GridViewItemPresenter ContentTransitions="{TemplateBinding ContentTransitions}"
										   Padding="{TemplateBinding Padding}"
										   SelectionCheckMarkVisualEnabled="False"
										   CheckHintBrush="{ThemeResource ListViewItemCheckHintThemeBrush}"
										   CheckSelectingBrush="{ThemeResource ListViewItemCheckSelectingThemeBrush}"
										   CheckBrush="{ThemeResource ListViewItemCheckThemeBrush}"
										   DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}"
										   DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}"
										   FocusBorderBrush="{ThemeResource ListViewItemFocusBorderThemeBrush}"
										   PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}"
										   PointerOverBackground="{ThemeResource ListViewItemPointerOverBackgroundThemeBrush}"
										   SelectedBorderThickness="{ThemeResource GridViewItemCompactSelectedBorderThemeThickness}"
										   SelectedBackground="{StaticResource Calendar|BackgroundBrush|Selected}"
										   SelectedForeground="{ThemeResource ListViewItemSelectedForegroundThemeBrush}"
										   SelectedPointerOverBackground="{x:Null}"
										   SelectedPointerOverBorderBrush="{x:Null}"
										   DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
										   DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
										   ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
										   HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
										   VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
										   PointerOverBackgroundMargin="1"
										   ContentMargin="0"></GridViewItemPresenter>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>